Creating an image map

Flash can generate an image map using any image so that buttons that link to URLs in the original Flash movie continue to function as links if an image is substituted. Flash inserts the image map code in a template when it encounters the $IM template variable. The $IU variable identifies the name of the GIF file. For example, the following code in a template:

$IM
<IMG SRC=$IS usemap=$IU WIDTH=$IW HEIGHT=$IH BORDER=0>

might produce this code in the HTML document created by Publish:

<MAP NAME="mymovie"><AREA COORDS="130,116,214,182" HREF="http://www.macromedia.com"></MAP><IMG SRC="mymovie.gif" usemap="#mymovie" WIDTH=550 HEIGHT=400 BORDER=0>

Place the frame label #Map in the keyframe in which you want to create the image map. If you don't create a frame label, Flash creates an image map using the buttons in the last frame of the movie.